import { ref } from 'vue'
import { defineStore } from 'pinia'

export const userOperationState = defineStore('userOperationState', () => {
  // 选择登陆，注册，或者忘记密码
  const chooseOperate = ref('login')
  const useLogin = () =>{
    chooseOperate.value = 'login'
  }
  const useRegister = () =>{
    chooseOperate.value = 'register'
  }
  const useRetrieve = () =>{
    chooseOperate.value = 'retrieve'
  }

  return {
    chooseOperate,useLogin,useRegister,useRetrieve,

  }
})